package modelLayer;

import java.util.ArrayList;

public class ClassContainer {
	private static ClassContainer instance;
	private ArrayList<UMLClass> classes;
	
	private ClassContainer(){
		classes = new ArrayList<UMLClass>();
	}
	
	public static ClassContainer getInstance(){
		if(instance == null){
			instance = new ClassContainer();
		}
		
		return instance;
	}
	
	public void addClass(UMLClass u){
		classes.add(u);
	}
	
	public ArrayList<UMLClass> getAll(){
		return classes;
	}

}
